]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceAnimation: Make WorkspaceGroup public
authorSergio Costas <raster@rastersoft.com>
Sat, 18 Dec 2021 23:05:21 +0000 (00:05 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 22 Dec 2021 18:27:07 +0000 (18:27 +0000)
commit8b3f74bb7dcbd8f0b01d1083fd056987289116e5
tree7b0a71c9953945140c7cd74984b37488e63cfcac
parenta4b6b07d78464c9e57aef11ca0cd7799b40daf39
workspaceAnimation: Make WorkspaceGroup public

The WorkspaceGroup class in defined as CONST, which means that,
strictly speaking, is inaccessible from outside the file
workspaceAnimation.js. But Desktop Icons NG needs access to it.

Although the current Javascript engine "tolerates" this access,
a warning message is shown in the log advertising that it's
incorrect, and that although it is still allowed, the code
should be fixed.

This patch changes the definition from CONST to VAR to allow
accessing it from extensions.

jk

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2068>
js/ui/workspaceAnimation.js